<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.edu.service.*"%>
<%@ page import="com.edu.service.impl.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.edu.entity.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="x" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/updatePass.css">
</head>
<body>
<form id='form' method="post">
		<div id="myid1">
		<p>
			<img src="image/2.png"><span>学生管理系统</span>
		</p>
		<br>
		<ul>
			<li><img src="image/3.png"><a href="class.jsp">班级管理</a></li>
			<br>
			<br>
			<br>
			<li><img src="image/4.png"><a href="teacher.jsp">老师管理</a></li>
			<br>
			<br>
			<br>
			<li><img src="image/5.png"><a href="student.jsp">学生管理</a></li>
			<br>
			<br>
			<br>
			<li><img src="image/6.png"><a href="grade.jsp">成绩管理</a></li>
			<br>
			<br>
			<br>
			<li><img src="image/7.png"><a href="updatePass.jsp">修改密码</a></li>
			<br>
			<br>
			<br>
			<li><img src="image/8.png"><a href="log.jsp">退出登录</a></li>
			<br>
			<br>
			<br>
		</ul>

	</div>
	<div id="myWork">
		<div id="updaatePass1">
			<img src="image/2.png">
			<h1>修改密码</h1>
			<%
				request.setCharacterEncoding("UTF-8");
				UserService userservice = new UserServiceimpl();
				int i=1;
				List<UserPass> up = userservice.DelSell(i);
				request.setAttribute("list", up);
			%>	
			<x:forEach items="${list }" var="user">	
					<p>	
						当前密码:<br><input type="passward" value="${user.uPass }">
					</p>
			</x:forEach>
			
			<p>
				新密码:<br><input type="passward" name="NewPass">
			</p>
			<p>
				确定密码:<br> <input type="passward" name="TPass">
			</p>
			
			<input type="button" value="修改密码" onclick="showAction('UpdatePassServlet')">
				
			
		</div>
	</div>		
</form>
</body>
<script>
     function $(id){
    	 return document.getElementById(id);
     }
    function showAction(url){
    	$("form").action=url;
    	$("form").submit();
    }
</script>
</html>